<style rel="stylesheet/less" lang="less">@dir: "cell/";</style>

<template>
<div class="showField-wrapper" v-if="$store.state.current_fields">
  <span>
      {{name}}
    </span>
</div>
</template>

<script type="text/ecmascript-6">
import tool from 'src/util/tool';
import util from '_util/index';

import {
  mapState,
  mapMutations,
  mapGetters,
  mapActions
}
from 'vuex'


export default {
  data() {
    return {
      name: '',
    }
  },
  methods: {
    setName() {
      let id = this.col.rs
      let ctl = this.col.ctl
      // let current_fields = this.$store.state.global.current_fields;
      let current_fields = this.$store.state.global.current_fields;
      let name = current_fields[ctl][id]
      this.name= name;
    }
  },
  props: ['col'],
  computed: {

  },
  created() {
    this.setName();
  }
};
</script>
